/*
 * WikipediaObjectDerivator.java
 *
 * Created on 6 f�vrier 2008, 10:36
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package br.great.functionalCore;

import java.util.Vector;
import br.great.beans.*;
import org.geonames.*;

/**
 *
 * @author defautce
 */
public class WikipediaObjectDerivator {

    /** Creates a new instance of WikipediaObjectDerivator */
    public WikipediaObjectDerivator() {
    }

    public static Vector<Wiki> getDerivatedObject(Point coor) {
//System.out.println(coor.getLatitude()+"  "+coor.getLongitude());
        Vector<Wiki> vWiki;
        vWiki = GeonamesClient.findNearbyWikipedia(coor.getLatitude(), coor.getLongitude());
        if (vWiki != null) {
            
            return vWiki;
        } else {
            return new Vector();
        }
    }
}
